import React from 'react';
import './index.scss';

interface defaultProps {
  name:string;
  size?:number | string;
}


const Icon = (props: defaultProps)=>{
  return <i className={`iconfont ${props.name}`} style={{fontSize:`${props.size?props.size:12}px`}}></i>;
}

export default Icon;